<div class="page-header">
    <h5 class="content-title"><%= __('sales.data') %></h5>
    <div class="pull-left">
        <ul class="fl">
            <li>
                <button class="btn btn-block btn-info newData"><i class="fui-plus-circle icon-menu"></i>
                    <span><%= __('sales.typeInData') %></span>
                </button>
            </li>
            <li>
                <button class="btn btn-block btn-success importData"><i class="fa fa-upload icon_menu"></i><span><%= __('sales.importTemplateData') %></span>
                </button>
            </li>

        </ul>
        <ul class="fr">
            <li>
                <a href="javascript:alert('模板整理中...');"><i class="glyphicon glyphicon-save icon_menu"></i><span><%= __('sales.templateDownload') %></span>
                </a>
            </li>
        </ul>
    </div>
</div>
<div class="queryCondition">
    <form class="query-form">
        <div class="row">
            <div class="col-md-3">
                <label><%= __('sales.storeName') %>：</label>
                <input type="text" name="customer_name_obj_like_ae" placeholder="<%= __('account.fuzzySearchByName') %>">
            </div>
            <div class="col-md-3">
                <label><%= __('sales.storeCode') %>：</label>
                <input type="text" name="customer_code_obj_like_ae" placeholder="<%= __('account.fuzzySearchByCode') %>">
            </div>
        </div>

        <div class="row">
            <div class="col-md-2">
                <button type="button" class="btn btn-sm btn-inverse btn-query"><%= __('account.search') %></button>
            </div>
        </div>
    </form>
</div>

<div class="dolphin-col-24 main" id="myContent">
    <div class="panel panel-primary box">
        <div class="panel-heading box-title">
            <h3 class="panel-title">
                <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                <%= __('sales.dataList') %>
            </h3>
            <div class="actions">
                <a class="btn btn-mini content-refresh" href="#">
                    <i class="fa fa-refresh"></i>
                </a>
            </div>
        </div>
        <div id="userList" class="box-content"></div>
    </div>
</div>

<div class="modal" id="account_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('sales.typeInData') %></span>
            </div>
            <div class="modal-body">
                <div class="tab-pane">
                    <form class="form-horizontal edit-form">
                        <input type="hidden" class="form-control" name="id">
                        <input type="hidden" class="form-control" id="customerId" name="customer.id">
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.storeCode') %></label>
                            <div class="col-md-6">
                                <div class="input-group">
                                    <input class="form-control" id="cusCode" type="text"
                                           placeholder="<%= __('sales.inputCodes') %>" autocomplete="off">
                                    <div class="input-group-btn" style="">
                                        <button style="height: 32px;width: 20px;" type="button"
                                                class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                            <span class="caret" style="margin-left: 2px;margin-bottom: 9px;"></span>
                                        </button>
                                        <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.storeName') %></label>
                            <div class="col-md-6">
                                <input class="form-control" id="cusName" readonly type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.occurrenceTime') %></label>
                            <div class="col-md-6">
                                <div class="input-group date dolphin_date_picker">
                                    <input type="text" class="form-control" name="happenDate">
                                    <span class="input-group-addon">
                                        <i class="glyphicon glyphicon-th"></i>
                                        </span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.tradingVolume') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="totalAmount" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.tradingQuantity') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="totalQuantity" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('sales.tradingPenNumber') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="totalCount" type="number">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<div class="modal" id="upload_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('sales.templateData') %></span>
            </div>
            <div class="modal-body">
                <div class="tab-pane">
                    <form class="form-horizontal edit-form">
                        <input type="file" class="form-control" name="upload">
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary import_submit"><%= __('sales.typeInData') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<script src="<%= global.config.publicPath %>/bootstrap/bootstrap-suggest.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/<%= path %>.js"></script>